package define.Demo_01.gameWZ;

public class Playertest {
    public static void main(String[] args) {
        Player keke = new Player("叩叩", 99);
        Player xixi = new Player("西西", 100);
        while (keke.getBlood() > 0 && xixi.getBlood() > 0) {
            keke.attack(xixi);
            if (xixi.getBlood() <= 0) {
                System.out.println(keke.getName() + "胜利");
                break;
            }
            xixi.attack(keke);
            if (keke.getBlood() <= 0) {
                System.out.println(xixi.getName() + "胜利");
                break;
            }
        }
    }


}
